package com.jackoak.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jackoak.service.SysUserService;

@Controller
@RequestMapping("/sysUser")
public class SysUserController {
	
	private Logger logger = Logger.getLogger(this.getClass());
	
	@Resource
	private SysUserService sysUserService;
	
	
	@ResponseBody
	@RequestMapping("/queryAll")
	public Map<String,Object> queryAll(@RequestParam Map<String,Object> param)throws Exception{
		Map<String,Object> map = new HashMap<String,Object>();
		List<Map<String,Object>> list = sysUserService.queryAll(param);
		
		map.put("result", list);
		map.put("code", 200);
		return map;
		
	}

}
